<template>
    <h1>接收-路由参数id-为：{{ route.params.id }}</h1>
</template>

<script setup lang="ts">
const route = useRoute()
// 获取路由参数id
// 传给页面显示
console.log(route.params.id);

</script>

<style scoped lang="scss"></style>